<!-- papers-preview.html -->
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
	xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head th:include="inc/examHeader::header">
</head>
	<body>
		<!--返回-->
		<div class="back" onclick="location='/paperManager/papers'"><img src="../images/back.png" /></div>
		<div th:include="header :: header"></div>
		<div class="header-title">
			<span>试卷预览</span>
		</div>
		<div class="spare-a">
			<div class="spare-add">
				<div class="take-title" th:text="${paper.name}"></div>
				<div class="take-a" th:text="'试卷类型：'+${paper.examType}">
					<span th:text="'总分：'+${paper.totalScore}"></span>
					<span th:text="'总时长：'+${paper.totalTime}"></span>
				</div>
				<div class="nottake-b">
					<div class="paper-d-title"  th:if="${not #lists.isEmpty(radioList)}" th:text="'单选题(每小题'+${paper.radioScore}+'分,共'+${radioList.size()*paper.radioScore}+'分)'"></div>
					<div class="nottake-ba" th:each="r:${radioList}">
						<div class="nottake-ba-title" th:text="'('+${r.question.order}+')'+${r.question.content}"></div>
					    <div class="nottake-bb" th:if="${r.question.A ne null}" th:text="${'A.'+r.question.A}">
					    	<div class="documentation-check"></div>
					    </div>
					    <div class="nottake-bb" th:if="${r.question.B ne null}" th:text="${'B.'+r.question.B}">
					    	<div class="documentation-check"></div>
					    </div>
					    <div class="nottake-bb" th:if="${r.question.C ne null}" th:text="${'C.'+r.question.C}">
					    	<div class="documentation-check"></div>
					    </div>
					    <div class="nottake-bb" th:if="${r.question.D ne null}" th:text="${'D.'+r.question.D}">
					    	<div class="documentation-check"></div>
					    </div>
					    <div class="nottake-bb" th:if="${r.question.E ne null}" th:text="${'E.'+r.question.E}">
					    	<div class="documentation-check"></div>
					    </div>
					    <div class="take-b">正确答案：<span th:text="${r.question.answer}"></span></div>
					    <div class="take-b">答案解析：<span th:text="${r.question.explain}"></span></div>
					    <div class="take-b">关联章节：
					   <!--  <a href="#">柴油机-功能描述 </a><a href="#">柴油机-功能描述 </a><a href="#">柴油机-功能描述 </a> -->
					    		<span th:each="dm : ${r.chapterList}">
	       	  	 					<span th:text="${dm.title}+' 、 '" th:onclick="'javascript:relat(\''+${dm.url}+'\');'"></span>
	       	  	 				</span>
					    </div>
					</div>
					
				</div>
				<div class="nottake-b">
					<div class="paper-d-title" th:if="${not #lists.isEmpty(checkList)}" th:text="'多选题(每小题'+${paper.checkScore}+'分,共'+${checkList.size()*paper.checkScore}+'分)'">二、多选题（每小题5.0分，共25.0分）</div>
					<div class="nottake-ba" th:each="c:${checkList}">
						<div class="nottake-ba-title" th:text="'('+${c.question.order}+')'+${c.question.content}"></div>
					    <div class="nottake-bb" th:if="${c.question.A ne null}" th:text="${'A.'+c.question.A}">
					    	<div class="documentation-check"></div>
					    </div>
					    <div class="nottake-bb" th:if="${c.question.B ne null}" th:text="${'B.'+c.question.B}">
					    	<div class="documentation-check"></div>
					    </div>
					    <div class="nottake-bb" th:if="${c.question.C ne null}" th:text="${'C.'+c.question.C}">
					    	<div class="documentation-check"></div>
					    </div>
					    <div class="nottake-bb" th:if="${c.question.D ne null}" th:text="${'D.'+c.question.D}">
					    	<div class="documentation-check"></div>
					    </div>
					    <div class="nottake-bb" th:if="${c.question.E ne null}" th:text="${'E.'+c.question.E}">
					    	<div class="documentation-check"></div>
					    </div>
					    <div class="take-b">正确答案：<span th:text="${c.question.answer}"></span></div>
					    <div class="take-b">答案解析：<span th:text="${c.question.explain}"></span></div>
					    <div class="take-b">关联章节：
					    		<span th:each="dm : ${c.chapterList}">
	       	  	 					<span th:text="${dm.title}+' 、 '" th:onclick="'javascript:relat(\''+${dm.url}+'\');'"></span>
	       	  	 				</span>
					    </div>
					</div>
				</div>
				<div class="nottake-b">
					<div class="paper-d-title" th:if="${not #lists.isEmpty(judeList)}" th:text="'判断题(每小题'+${paper.judgeScore}+'分,共'+${judeList.size()*paper.judgeScore}+'分)'"></div>
					<div class="nottake-ba" th:each="j:${judeList}">
						<div class="nottake-ba-title" th:text="'('+${j.question.order}+')'+${j.question.content}"></div>
					    <div class="nottake-bb" th:text="${'A.'+j.question.A}">
					    	<div class="documentation-check"></div>
					    </div>
					    <div class="nottake-bb" th:text="${'B.'+j.question.B}">
					    	<div class="documentation-check"></div>
					    </div>
					    <div class="take-b">正确答案：<span th:text="${j.question.answer}"></span></div>
					    <div class="take-b">答案解析：<span th:text="${j.question.explain}"></span></div>
					    <div class="take-b">关联章节：
					   			<span th:each="dm : ${j.chapterList}">
	       	  	 					<span th:text="${dm.title}+' 、 '" th:onclick="'javascript:relat(\''+${dm.url}+'\');'"></span>
	       	  	 				</span>
					    </div>
					</div>
				</div>
				<div class="nottake-b">
					<div class="paper-d-title" th:if="${not #lists.isEmpty(askList)}" th:text="'问答题(每小题'+${paper.askScore}+'分,共'+${askList.size()*paper.askScore}+'分)'"></div>
					<div class="nottake-ba" th:each="a:${askList}">
						<div class="nottake-ba-title" th:text="'('+${a.question.order}+')'+${a.question.content}"></div>
					    <div class="take-b">正确答案：<span th:text="${a.question.answer}"></span></div>
					    <div class="take-b">答案解析：<span th:text="${a.question.explain}"></span></div>
					    <div class="take-b">关联章节：
					   			<span th:each="dm : ${a.chapterList}">
	       	  	 					<span th:text="${dm.title}+' 、 '" th:onclick="'javascript:relat(\''+${dm.url}+'\');'"></span>
	       	  	 				</span>
					    </div>
					</div>
				</div>
				<div class="nottake-b">
					<div class="paper-d-title" th:if="${not #lists.isEmpty(fillList)}" th:text="'填空题(每小题'+${paper.fillScore}+'分,共'+${fillList.size()*paper.fillScore}+'分)'"></div>
					<div class="nottake-ba" th:each="a:${fillList}">
						<div class="nottake-ba-title" th:text="'('+${a.question.order}+')'+${a.question.content}"></div>
					    <div class="take-b">正确答案：<span th:text="${a.question.answer}"></span></div>
					    <div class="take-b">答案解析：<span th:text="${a.question.explain}"></span></div>
					    <div class="take-b">关联章节：
					   			<span th:each="dm : ${a.chapterList}">
	       	  	 					<span th:text="${dm.title}+' 、 '" th:onclick="'javascript:relat(\''+${dm.url}+'\');'"></span>
	       	  	 				</span>
					    </div>
					</div>
				</div>
			</div>
		</div>
		 <script th:inline="javascript">  
/*<![CDATA[*/
          
   function relat(url){
	    top.$.Zebra_Dialog({
			source : {
				'iframe' : {
					'src' : url,
					'height' : 400
				}
	   
			},
			width : 800,
			title : '关联章节'
		});  
    }
/*]]>*/  
</script>
	</body>
</html>
